package com.example.seataordersys.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient("seata-storage-sys") // 指向服务提供者应用
public interface StorageFeign {

    @GetMapping("/api/storage/deduct")
    String deduct(@RequestParam("productId") Long productId,
                  @RequestParam("count") Integer count);
}
